<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="GBK"
	contentType="text/html;charset=GBK"%>

<form method="post" id="loginForm"
	action="<c:url value="/j_security_check"/>"
	onsubmit="saveUsername(this);return validateForm(this)" target="_top">
	<table align="center" width="486" height="317" border='0'
		background="<c:url value="/images/login_bg.gif"/>">
		<tr nowrap>
			<td width="230" nowrap>
				&nbsp;
			</td>
			<td>
				<table>
					<c:if test="${param.error != null}">
						<tr width="100%">
						<td width="100%">
							<img src="<c:url value="/images/iconWarning.gif"/>"
			alt="<fmt:message key="icon.warning"/>" class="icon" /> <fmt:message
			key="errors.password.mismatch" /> 
						</td>
					</tr>
	</c:if>
					<tr width="100%">
						<td width="100%">
							<label for="j_username" class="desc">
								<fmt:message key="label.username" />
								<span class="req">*</span>
							</label>
							<input type="text" class="text medium" name="j_username"
								id="j_username" tabindex="1" value="" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="j_password" class="desc">
								<fmt:message key="label.password" />
								<span class="req">*</span>
							</label>
							<input type="password" class="text medium" name="j_password"
								id="j_password" tabindex="2" />
						</td>
					</tr>
					<c:if test="${appConfig['rememberMeEnabled']}">
						<tr align="center">
							<td>
								<input type="checkbox" class="checkbox" name="rememberMe"
									id="rememberMe" tabindex="3" />
								<label for="rememberMe" class="choice">
									<fmt:message key="login.rememberMe" />
								</label>
							</td>
						</tr>
					</c:if>
					<tr align="center">
						<td>
							<input type="submit" class="button" name="login"
								value="<fmt:message key="button.login"/>" tabindex="4" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>

<%@ include file="/scripts/login.js"%>
